style.scss 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. .channel-page {
  2. max-width: 1080px;
  3. margin: 0 auto;
  4. // ── 배너 ─────────────────────────────────────────
  5. &__banner {
  6. aspect-ratio: 6.2 / 1;
  7. background: linear-gradient(135deg, var(--bg-subtle), var(--border-default));
  8. border-radius: 12px;
  9. overflow: hidden;
  10. margin: 20px 20px 0 20px;
  11. }
  12. &__banner-img {
  13. width: 100%;
  14. height: 100%;
  15. object-fit: cover;
  16. }
  17. // ── 프로필: 썸네일 + 채널명/메타/버튼 ─────────────
  18. &__profile {
  19. display: flex;
  20. align-items: flex-start;
  21. gap: 16px;
  22. padding: 16px 16px 12px;
  23. }
  24. &__avatar {
  25. width: 72px;
  26. height: 72px;
  27. border-radius: 50%;
  28. overflow: visible;
  29. background: var(--bg-subtle);
  30. flex-shrink: 0;
  31. position: relative;
  32. display: block;
  33. text-decoration: none;
  34. img {
  35. width: 100%;
  36. height: 100%;
  37. object-fit: cover;
  38. border-radius: 50%;
  39. }
  40. &--live {
  41. padding: 2px;
  42. background: linear-gradient(135deg, #f43f5e, #dc2626, #f97316);
  43. background-origin: border-box;
  44. img {
  45. border: 2px solid var(--bg-page, #fff);
  46. }
  47. }
  48. }
  49. &__live-badge {
  50. position: absolute;
  51. bottom: -4px;
  52. left: 50%;
  53. transform: translateX(-50%);
  54. background: #dc2626;
  55. color: #fff;
  56. font-size: 0.5625rem;
  57. font-weight: 700;
  58. letter-spacing: 0.5px;
  59. padding: 1px 6px;
  60. border-radius: 3px;
  61. line-height: 1.4;
  62. border: none;
  63. }
  64. &__avatar-placeholder {
  65. width: 100%;
  66. height: 100%;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. font-size: 1.75rem;
  71. font-weight: 700;
  72. color: var(--text-muted);
  73. border-radius: 50%;
  74. }
  75. &__info {
  76. flex: 1;
  77. min-width: 0;
  78. height: 100%;
  79. align-self: center;
  80. }
  81. &__name {
  82. font-size: 1.25rem;
  83. font-weight: 700;
  84. display: flex;
  85. align-items: center;
  86. gap: 6px;
  87. line-height: 1.3;
  88. a {
  89. color: inherit;
  90. text-decoration: none;
  91. &:hover {
  92. text-decoration: underline;
  93. }
  94. }
  95. }
  96. &__verified {
  97. display: inline-flex;
  98. align-items: center;
  99. justify-content: center;
  100. width: 16px;
  101. height: 16px;
  102. border-radius: 50%;
  103. background: #38ab23;
  104. color: #fff;
  105. font-size: 0.5625rem;
  106. flex-shrink: 0;
  107. }
  108. &__meta {
  109. display: flex;
  110. align-items: center;
  111. flex-wrap: wrap;
  112. gap: 4px;
  113. font-size: 0.8125rem;
  114. color: var(--text-muted);
  115. margin-top: 2px;
  116. span + span::before {
  117. content: ' · ';
  118. }
  119. }
  120. // ── 버튼 컨테이너 ───────────────────────────
  121. &__buttons {
  122. display: flex;
  123. align-items: center;
  124. gap: 8px;
  125. flex-wrap: wrap;
  126. // 데스크톱 전용 (info 내부)
  127. &--desktop {
  128. display: none;
  129. margin-top: 20px;
  130. }
  131. // 모바일 전용 (profile 아래 별도 줄)
  132. &--mobile {
  133. padding: 0 16px 4px;
  134. }
  135. }
  136. // ── 공통 액션 버튼 base (구독/팔로우/후원 모두) ──
  137. &__action {
  138. display: inline-flex;
  139. align-items: center;
  140. justify-content: center;
  141. gap: 6px;
  142. height: 36px;
  143. padding: 0 18px;
  144. border-radius: 999px;
  145. font-size: 0.875rem;
  146. font-weight: 600;
  147. line-height: 1;
  148. white-space: nowrap;
  149. text-decoration: none;
  150. border: 1px solid transparent;
  151. box-sizing: border-box;
  152. transition: background 0.15s ease, color 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  153. &:disabled {
  154. opacity: 0.6;
  155. cursor: not-allowed;
  156. }
  157. }
  158. // 구독 (YouTube 외부 링크) — 검정
  159. &__subscribe-btn {
  160. background: var(--fg-default, #0f0f0f);
  161. color: var(--bg-page, #fff);
  162. &:hover {
  163. opacity: 0.85;
  164. }
  165. }
  166. // 팔로우 — 기본 follow-button 색상 유지, 사이즈만 통일
  167. // (follow-button 자체 padding/font-size/border-radius는 override)
  168. &__follow.follow-button {
  169. padding: 0 18px;
  170. height: 36px;
  171. font-size: 0.875rem;
  172. font-weight: 600;
  173. border-radius: 999px;
  174. line-height: 1;
  175. gap: 6px;
  176. }
  177. // 후원 — 그래디언트 + ripple + shimmer 효과
  178. &__donate-btn {
  179. position: relative;
  180. background: linear-gradient(135deg, #f59e0b, #dc2626);
  181. color: #fff;
  182. overflow: hidden;
  183. isolation: isolate;
  184. box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
  185. transition: box-shadow 0.3s ease, transform 0.2s ease;
  186. // 내부 쉬머 라이트 스윕
  187. &::before {
  188. content: '';
  189. position: absolute;
  190. inset: 0;
  191. background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  192. transform: translateX(-120%);
  193. transition: transform 0.9s ease;
  194. pointer-events: none;
  195. z-index: 1;
  196. }
  197. // 외부 물결 링 (hover 시 expanding pulse)
  198. &::after {
  199. content: '';
  200. position: absolute;
  201. inset: -4px;
  202. border-radius: inherit;
  203. border: 2px solid rgba(245, 158, 11, 0.55);
  204. opacity: 0;
  205. pointer-events: none;
  206. z-index: -1;
  207. }
  208. // 내부 span이 pseudo 위에 오도록
  209. > span {
  210. position: relative;
  211. z-index: 2;
  212. }
  213. &:hover,
  214. &:focus-visible {
  215. transform: translateY(-1px);
  216. box-shadow:
  217. 0 6px 20px rgba(220, 38, 38, 0.35),
  218. 0 0 0 4px rgba(245, 158, 11, 0.15);
  219. &::before {
  220. transform: translateX(120%);
  221. }
  222. &::after {
  223. animation: channel-page__donate-ripple 1.4s ease-out infinite;
  224. }
  225. }
  226. &:focus-visible {
  227. outline: 2px solid #f59e0b;
  228. outline-offset: 2px;
  229. }
  230. &:active {
  231. transform: translateY(0);
  232. box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
  233. }
  234. @media (prefers-reduced-motion: reduce) {
  235. transition: none;
  236. &::before,
  237. &::after {
  238. display: none;
  239. }
  240. &:hover,
  241. &:focus-visible {
  242. transform: none;
  243. }
  244. }
  245. }
  246. // ── 라이브 ───────────────────────────────────────
  247. &__live {
  248. display: flex;
  249. align-items: center;
  250. gap: 10px;
  251. padding: 10px 16px;
  252. margin: 0 16px;
  253. background: rgba(220, 38, 38, 0.05);
  254. border: 1px solid rgba(220, 38, 38, 0.15);
  255. border-radius: 8px;
  256. }
  257. &__live-dot {
  258. width: 8px;
  259. height: 8px;
  260. border-radius: 50%;
  261. background: #dc2626;
  262. flex-shrink: 0;
  263. animation: pulse-live 1.5s ease-in-out infinite;
  264. }
  265. &__live-title {
  266. flex: 1;
  267. font-size: 0.875rem;
  268. font-weight: 500;
  269. overflow: hidden;
  270. text-overflow: ellipsis;
  271. white-space: nowrap;
  272. }
  273. &__watch-btn {
  274. font-size: 0.8125rem;
  275. color: #3b82f6;
  276. font-weight: 500;
  277. flex-shrink: 0;
  278. white-space: nowrap;
  279. &:hover {
  280. text-decoration: underline;
  281. }
  282. }
  283. // ── 탭 네비게이션 ────────────────────────────────
  284. &__tabs {
  285. display: flex;
  286. border-bottom: 1px solid var(--border-default);
  287. margin-top: 4px;
  288. padding: 0 16px;
  289. }
  290. &__tab {
  291. padding: 12px 16px;
  292. font-size: 0.875rem;
  293. font-weight: 500;
  294. color: var(--text-muted);
  295. cursor: pointer;
  296. position: relative;
  297. &--active {
  298. color: var(--fg-default);
  299. &::after {
  300. content: '';
  301. position: absolute;
  302. bottom: -1px;
  303. left: 0;
  304. right: 0;
  305. height: 2px;
  306. background: var(--fg-default);
  307. border-radius: 2px 2px 0 0;
  308. }
  309. }
  310. &:hover:not(&--active) {
  311. color: var(--fg-default);
  312. }
  313. }
  314. // ── 탭 콘텐츠 ───────────────────────────────────
  315. &__tab-content {
  316. padding: 16px;
  317. }
  318. &__description {
  319. font-size: 0.875rem;
  320. color: var(--text-secondary);
  321. line-height: 1.6;
  322. white-space: pre-line;
  323. }
  324. &__empty {
  325. font-size: 0.875rem;
  326. color: var(--text-muted);
  327. }
  328. // ── 안내(없음/중단) 화면 ─────────────────────────
  329. &__notice {
  330. display: flex;
  331. flex-direction: column;
  332. align-items: center;
  333. justify-content: center;
  334. text-align: center;
  335. gap: 12px;
  336. min-height: 50vh;
  337. padding: 48px 24px;
  338. }
  339. &__notice-title {
  340. font-size: 1.25rem;
  341. font-weight: 700;
  342. color: var(--fg-default);
  343. }
  344. &__notice-desc {
  345. font-size: 0.9375rem;
  346. color: var(--text-muted);
  347. line-height: 1.6;
  348. }
  349. &__notice-home {
  350. margin-top: 8px;
  351. display: inline-flex;
  352. align-items: center;
  353. justify-content: center;
  354. height: 38px;
  355. padding: 0 20px;
  356. border-radius: 999px;
  357. font-size: 0.875rem;
  358. font-weight: 600;
  359. text-decoration: none;
  360. background: var(--fg-default, #0f0f0f);
  361. color: var(--bg-page, #fff);
  362. transition: opacity 0.15s ease;
  363. &:hover {
  364. opacity: 0.85;
  365. }
  366. }
  367. // ── Mobile/Tablet: 버튼 풀너비 균등 분할 ──────────
  368. @media (max-width: 767px) {
  369. &__banner {
  370. margin: 10px;
  371. }
  372. &__buttons--mobile {
  373. display: flex;
  374. }
  375. // 3개 버튼 완전 균등 분할 (FollowButton 포함)
  376. &__buttons--mobile > &__action,
  377. &__buttons--mobile > .follow-button {
  378. flex: 1 1 0;
  379. min-width: 0;
  380. }
  381. }
  382. // 매우 좁은 화면: 패딩만 축소 (아이콘+텍스트 유지)
  383. @media (max-width: 380px) {
  384. &__buttons--mobile > &__action,
  385. &__buttons--mobile > .follow-button {
  386. padding: 0 10px;
  387. font-size: 0.8125rem;
  388. }
  389. }
  390. // ── Desktop: 버튼 info 내부, 썸네일 크게 ──────────
  391. @media (min-width: 768px) {
  392. &__buttons--desktop {
  393. display: flex;
  394. }
  395. &__buttons--mobile {
  396. display: none;
  397. }
  398. // Desktop에서 3버튼 최소 폭 통일 — 내용 길이 달라도 균형
  399. &__buttons--desktop > &__action,
  400. &__buttons--desktop > .follow-button {
  401. min-width: 104px;
  402. }
  403. &__profile {
  404. align-items: center;
  405. gap: 20px;
  406. padding: 20px 24px 16px;
  407. }
  408. &__avatar {
  409. width: 128px;
  410. height: 128px;
  411. }
  412. &__name {
  413. font-size: 1.5rem;
  414. }
  415. &__meta {
  416. font-size: 0.875rem;
  417. }
  418. &__tabs {
  419. padding: 0 24px;
  420. }
  421. &__tab-content {
  422. padding: 20px 24px;
  423. }
  424. &__live {
  425. margin: 0 24px;
  426. }
  427. }
  428. }
  429. @keyframes pulse-live {
  430. 0%, 100% { opacity: 1; }
  431. 50% { opacity: 0.4; }
  432. }
  433. @keyframes channel-page__donate-ripple {
  434. 0% {
  435. transform: scale(1);
  436. opacity: 0.6;
  437. }
  438. 80% {
  439. opacity: 0;
  440. }
  441. 100% {
  442. transform: scale(1.5);
  443. opacity: 0;
  444. }
  445. }